import 'dart:async';

import 'package:flutter/material.dart';
import 'package:flutter_iflyad/flutter_iflyad.dart';

class BannerAdHome extends StatefulWidget {
  @override
  _BannerAdHomeState createState() => _BannerAdHomeState();
}

class _BannerAdHomeState extends State<BannerAdHome> {

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Text(
        "streamController: _streamController",
      ),
    );
  }
  void initState() {
    super.initState();
    FlutterIflyad.showBannerAD(
        adUnitId: "F57CD032F248424B521D5FA09F594D5E");
  }
  @override
  void dispose() {
    FlutterIflyad.disposeBannerAD(
        adUnitId: "F57CD032F248424B521D5FA09F594D5E");
    super.dispose();
  }
}
